<?php
/**
 * 返回select类型的input
 * Enter description here ...
 * @author nijn
 *
 */
class SelectInput {

	public function createInput($form, $model, $attribute, $parameters) {
		$data = isset($parameters[0]) ? $parameters[0] : array();
		$htmlOptions = isset($parameters[1]) ? $parameters[1] : array();
		return $form->dropDownList($model, $attribute, $data, $htmlOptions);
	}
}

?>